const pool = require('./pool.js')
module.exports = {
	query(sql,data) {
		return new Promise((resolve, reject) => {
			pool.query(sql, data, (err, result) => {
				if (err){
					reject(err)
					 return this.neth(err)
				}
				resolve(result)
			})
		})
	},
}
